Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: debug zip uses read-only range probe #108313

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

dhartunian
Copy link
Collaborator

@dhartunian dhartunian commented Aug 7, 2023

To reduce the chance of corruption issues when run against older clusters, the recently added use of crdb_internal.probe_ranges is modified to use a read probe instead of a write probe.

See discussion in #107720

Release note: None
Epic: None

@dhartunian dhartunian requested review from joshimhoff, nvanbenschoten, j82w and a team August 7, 2023 19:43
@dhartunian dhartunian requested a review from a team as a code owner August 7, 2023 19:43
@dhartunian dhartunian requested review from Santamaura and removed request for a team August 7, 2023 19:43
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@abarganier abarganier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: - just one nit re: an important comment that I think we should have.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @dhartunian, @j82w, @joshimhoff, @nvanbenschoten, and @Santamaura)


pkg/cli/zip_table_registry.go line 233 at r1 (raw file):

	"crdb_internal.probe_ranges_1s_read_limit_100": {
		customQueryRedacted:   `SELECT * FROM crdb_internal.probe_ranges(INTERVAL '1000ms', 'read') WHERE error != '' ORDER BY end_to_end_latency_ms DESC LIMIT 100;`,
		customQueryUnredacted: `SELECT * FROM crdb_internal.probe_ranges(INTERVAL '1000ms', 'read') WHERE error != '' ORDER BY end_to_end_latency_ms DESC LIMIT 100;`,

nit: is it worth putting a comment here noting the potential dangers of using write here, so future maintainers have that context?

Copy link
Collaborator

@joshimhoff joshimhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks. I agree with @abarganier that we should add a comment about the corruption bug.

To reduce the chance of corruption issues when run against older
clusters, the recently added use of 'crdb_internal.probe_ranges` is
modified to use a `read` probe instead of a `write` probe.

See discussion in cockroachdb#107720

Release note: None
Epic: None
@dhartunian dhartunian force-pushed the debug-zip-read-only-probe branch from d89c92b to 0f44cac Compare August 7, 2023 21:39
Copy link
Collaborator Author

@dhartunian dhartunian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @j82w, @nvanbenschoten, and @Santamaura)


pkg/cli/zip_table_registry.go line 233 at r1 (raw file):

Previously, abarganier (Alex Barganier) wrote…

nit: is it worth putting a comment here noting the potential dangers of using write here, so future maintainers have that context?

Done.

@dhartunian
Copy link
Collaborator Author

bors r=joshimhoff

Copy link
Collaborator

@joshimhoff joshimhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshimhoff
Copy link
Collaborator

thx for the fix!

Copy link
Contributor

@j82w j82w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (and 1 stale) (waiting on @nvanbenschoten and @Santamaura)

@craig
Copy link
Contributor

craig bot commented Aug 8, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Aug 8, 2023

Build succeeded:

@craig craig bot merged commit 0d110cd into cockroachdb:master Aug 8, 2023
@dhartunian dhartunian deleted the debug-zip-read-only-probe branch February 5, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants